.wrap {
  max-width: 640px;
  margin: 0 auto;
  overflow: hidden;
  min-height: 100%;
  background-color: #fff;
}
.wrap .index-search {
  position: fixed;
  top: 0;
  max-width: 640px;
  width: 100%;
  height: 4rem;
  overflow: hidden;
  background: #b81c22;
  z-index: 999;
}
.wrap .index-search .search-form {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  width: 85%;
  height: 2.2rem;
  line-height: 2.9rem;
  background-color: #fff;
  border-radius: 0.3rem;
  overflow: hidden;
}
.wrap .index-search .search-form .search-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  display: inline-block;
  margin-left: 0.8rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 0;
  background: url("../img/search2.png") no-repeat;
  background-size: contain;
  cursor: pointer;
}
.wrap .index-search .search-form .search-input {
  font-size: inherit;
  position: absolute;
  left: 3.3rem;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  width: 85%;
  height: 85%;
  display: inline-block;
  border: 0 none;
  vertical-align: middle;
}
.wrap .index-search .index-message {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  width: 1.8rem;
  height: 1.3rem;
  display: inline-block;
  background: url("../img/msg3.png") no-repeat;
  background-size: cover;
  -webkit-background-size: 1.8rem 1.3rem;
  cursor: pointer;
}
.wrap .index-search .index-message .hasNewMsg {
  position: absolute;
  top: -0.2rem;
  right: -0.5rem;
  border: 0.2rem solid #fff;
  border-radius: 0.2rem;
}
